﻿<!DOCTYPE html>

<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/RongeJs/cic-main.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/RongeJs/Confirm.js")" type="text/javascript"></script>
</head>
<body>
    <div class="All_top">
        <div class="headpart ui-icons"><p><i>欢迎</i>, @HttpContext.Current.User.Identity.Name | [<a href="@Url.Action("LogOff", "Account")">注销</a>]</p></div>
    </div>
    <div class="center">
        <div class="box">
            <div class="center_box_bg">
            <div class="menu">
                <ul>
                    <li class="item_no ui-icons"><span class="item_A ui-icons"></span><a href="@Url.Action("Index", "Home")">首页</a></li>
                    <li class="item_no_b ui-icons"></li>
                    <li class="li_width">|</li>
                    <li class="">
                    @if (HttpContext.Current.User.IsInRole("Admin") || HttpContext.Current.User.IsInRole("Editer"))
                    {
                    <span class="item_B ui-icons"></span><a href="@Url.Action("Manage", "Home")">工作主页</a>
                    }
                    else 
                    {
                        <span class="item_B ui-icons"></span><a href="@Url.Action("Zone", "Home")">我的主页</a>
                    }

                    </li>
                </ul>
            </div>
            </div>
            <div class="main_left">
                <div class="headpart ui-icons"></div>
                <div class="left_menu">
                  @if (HttpContext.Current.User.IsInRole("Admin") || HttpContext.Current.User.IsInRole("Editer"))
                  {
                    <div class="left_menu_border">
                        <div class="ui-icons VNavParentI" id="VNavParent1" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;订单工作管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "Order")" class="ui-icons">订单查询</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("OrdersOfPending", "Order")" class="ui-icons">待处理订单</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("OrdersHasApproved", "Order")" class="ui-icons">待完成订单</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("OrdersHasClosed", "Order")" class="ui-icons">已完成订单</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("OrdersHasRejected", "Order")" class="ui-icons">已拒绝订单</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("OrdersHasRevoked", "Order")" class="ui-icons">已撤销订单</a></li>
                        </ul></div>
                    </div>
                    <div class="left_menu_border">
                        <div class="ui-icons VNavParentI" id="VNavParent2" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;图书库存管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "Book")" class="ui-icons">售单图书</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "InStore")" class="ui-icons">图书入库</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("ClearingTheBooks", "InStore")" class="ui-icons">库存清算</a></li>
                        </ul></div>
                    </div>
                    <div class="left_menu_border">
                        <div class="ui-icons VNavParentI" id="VNavParent3" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;门户信息管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "ImgNews")" class="ui-icons">Sliders News</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "News")" class="ui-icons">General News</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "Files")" class="ui-icons">Public Documents</a></li>
                        </ul></div>
                    </div>
                      if (HttpContext.Current.User.IsInRole("Admin"))
                      {
                    <div class="left_menu_border">
                        <div class="ui-icons VNavParentI" id="VNavParent4" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;客户信息管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "Customer")" class="ui-icons">客户信息</a></li>
                        </ul></div>
                    </div>
                    <div class="left_menu_border">
                        <div class="ui-icons VNavParentI" id="VNavParent5" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;财务报表管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("Index", "Financial")" class="ui-icons">财务报表</a></li>
                        </ul></div>
                    </div>
                     }
                  }
                  else
                  {
                    <div class="left_menu_border">
                      <div class="ui-icons VNavParentI" id="VNavParent6" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;订单管理
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("PersonalOrders", "Order")" class="ui-icons">我的订单</a></li>
                        </ul></div>
                    <div class="ui-icons VNavParentI" id="VNavParent7" onclick="VNavParent(this);">&nbsp;&nbsp;&nbsp;&nbsp;个人信息
                        <ul style="display:none;">
                            <li class="VNavLeaf"><a href="@Url.Action("ChangeInfo", "Account")" class="ui-icons">个人信息</a></li>
                            <li class="VNavLeaf"><a href="@Url.Action("ChangePassword", "Account")" class="ui-icons">修改密码</a></li>
                        </ul></div>
                    </div>
                  }
                </div>

            </div>
            <div class="main_right" id="content">
               @RenderBody()
            </div>

        </div>
    </div>
    <div class="clear"></div>
    <!--foot-->
    <div class="foot">
    <div class="ui-icons footcenter">
        <div class="foot_main">© 2012 融益书屋. All Rights Reserved.</div>
    </div>
    </div>
    <!--foot-end-->
</body>
</html>
